package com.ai.module.user.domain.entity;

import com.ai.module.chat.common.domain.BaseEntity;
import com.ai.module.user.enu.ImageType;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author: heJinQin
 * @create: 2024-02-22 22:39
 * @description: 用户提示词
 **/
@Data
@TableName("user_image_analyze")
public class UserImageAnalyzeEntity extends BaseEntity {

    @TableField("user_id")
    private String userId;

    @TableField("prompt")
    private String prompt;


    @TableField("robot_id")
    private String robotId;

    @TableField("file_type")
    private String fileType = "PNG";

    @TableField("file_path")
    private String filePath;

    @TableField("robot_content")
    private String robotContent;

    @TableField("source")
    private ImageType source = ImageType.imageAnalyze;

    @TableField(value="expire_time",fill = FieldFill.INSERT)
    public LocalDateTime expireTime=LocalDateTime.now().plusMonths(1);



}
